package com.ruoyi.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 诸侯管理对象 h_tenement
 * 
 * @author ruoyi
 * @date 2023-01-19
 */
public class Tenement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 住户名字 */
    @Excel(name = "住户名字")
    private String name;

    /** 住户电话 */
    @Excel(name = "住户电话")
    private String phone;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 所在楼栋id */
    @Excel(name = "所在楼栋id")
    private Long ridgepoleId;

    /** 所在小区id */
    @Excel(name = "所在小区id")
    private Long communityId;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 描述 */
    @Excel(name = "描述")
    private String describe;

    private Community community;

    private Ridgepole ridgepole;

    public Community getCommunity() {
        return community;
    }

    public void setCommunity(Community community) {
        this.community = community;
    }

    public Ridgepole getRidgepole() {
        return ridgepole;
    }

    public void setRidgepole(Ridgepole ridgepole) {
        this.ridgepole = ridgepole;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setRidgepoleId(Long ridgepoleId) 
    {
        this.ridgepoleId = ridgepoleId;
    }

    public Long getRidgepoleId() 
    {
        return ridgepoleId;
    }
    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setDescribe(String describe) 
    {
        this.describe = describe;
    }

    public String getDescribe() 
    {
        return describe;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("status", getStatus())
            .append("ridgepoleId", getRidgepoleId())
            .append("communityId", getCommunityId())
            .append("address", getAddress())
            .append("describe", getDescribe())
            .toString();
    }
}
